package com.xneure.database.annotation;

import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.METHOD})
public @interface DBField{
	public boolean primaryKey() default false;

	public boolean ignore() default false;

	public AutoUpdate autoUpdate() default AutoUpdate.DEF;

	public String value() default "";

	public String order() default "";

	public String relation() default "";

	public Class<?> targetType() default Object.class;

	public DataType dataType() default DataType.ORIGINAL;

	public String sql() default "";

	public String where() default "";
}
